package com.xiyu.service.enums.fee.pay;

import com.xiyu.service.enums.fee.deposit.FeeDepositDetailStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 费用支付方式
*/
@Getter
@AllArgsConstructor
public enum FeePayTypeEnum implements IntArrayValuable {

    /**
    * 现金
    */
    CASH(1, "现金"),
    /**
    * 支付宝
    */
    ALIPAY(2, "支付宝"),
    /**
    * 微信
    */
    WECHAT(3, "微信"),
    /**
    * 银行转账
    */
    BACK_TRANSFER(4, "银行转账"),
    /**
    * 其它
    */
    OTHER(5, "其它");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(FeePayTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(FeePayTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
